package com.test.httptest.api;

import com.idc.resource.model.LoginReqDto;
import com.idc.resource.model.UserInfoResDto;
import com.idc.resource.util.Result;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * testing
 * Created by Lijing on 2017/7/12.
 */
public interface LoginApi {

    @POST("/idc-resource/login/in")
    Call<Result<UserInfoResDto>> login(@Body LoginReqDto loginReqDto);

    @POST("/idc-resource/login/out/{token}")
    Call<Result<Boolean>> loginOut(@Path("token") String token);
}
